<h1><?=$this->translate->_('topic_new_header')?></h1>

<?if($this->pubThreads == 0):?>
	<p class="notice"><?=$this->translate->_('nonpublic_notice')?></p>
<?endif;?>

<?if($this->auth OR $this->allow_guest_threads == 1):?>

	<?if(strlen($this->errorMessage) > 0):?>
		<p class="notice_bad"><?=$this->errorMessage?></p>
	<?endif;?>
	
	<form id="new_thread" enctype="application/x-www-form-urlencoded" action="" method="post">
		<dl class="zend_form"
			<dt><label for="title"><?=$this->translate->_('form_thread_title')?></label></dt>
			<dd><input type="text" name="title" id="title" /></dd>
			
			<dt><label for="text"><?=$this->translate->_('form_thread_text')?></label></dt>
			<dd><?=$this->partial('editor.phtml', array('captcha' => $this->captcha, 'translate' => $this->translate))?></dd>
		</dl>
	</form>
<?else:?>
	<p class="notice"><?=$this->translate->_('topic_login')?></p>
<?endif;?>